package com.industrial.operation.controller;

import com.industrial.common.core.web.controller.BaseController;
import com.industrial.common.core.web.page.TableDataInfo;
import com.industrial.common.security.annotation.RequiresPermissions;
import com.industrial.operation.domain.SysDataReporting;
import com.industrial.operation.service.IResultEvaluationRankingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/result/ranking")
public class ResultEvaluationRankingController extends BaseController {

    @Autowired
    private IResultEvaluationRankingService resultEvaluationRankingService;

    /**
     * 查询排名列表
     * @param sysDataReporting
     * @return
     */
    @RequiresPermissions("operation:ranking:list")
    @GetMapping("/list")
    public TableDataInfo list(SysDataReporting sysDataReporting){
        startPage();
        List<SysDataReporting> list = resultEvaluationRankingService.list(sysDataReporting);
        return getDataTable(list);
    }

}
